﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="icon" href="{site}/favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="{site}/favicon.ico" type="image/x-icon">
<link rel="bookmark" href="{site}/favicon.ico" type="image/x-icon">
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>发表新帖</title>
<link rel="stylesheet" href="{site}/ORG/UBB/ORG/UBB/edit.css" type="text/css">
<script type="text/javascript" src="{site}/Public/JScript/public.js?<?php echo time();?>"></script>
<script type="text/javascript" src="{site}/ORG/UBB/ORG/UBB/edit.js"></script>
<script charset="utf-8" src="{site}/Public/JScript/fatie.js"></script>
<link rel="stylesheet" href="{site}/Public/resources/css/style.css" type="text/css" media="screen" />
<script src="{site}/Public/bootstrap/js/jquery.min.js" type="text/javascript"></script>
<link rel="stylesheet" href="{site}/Public/bootstrap/css/tagmanager.css" type="text/css">
<link rel="stylesheet" href="{site}/Public/bootstrap/css/typeahead.css" type="text/css">
<script src="{site}/Public/bootstrap/js/tagmanager.js" type="text/javascript"></script>
<script src="{site}/Public/bootstrap/js/typeahead.bundle.js" type="text/javascript"></script>
<script src="{site}/Public/bootstrap/js/exclude.js" type="text/javascript" defer="true"></script>
<style>
*{margin:0px;padding:0px;font-family: 'Microsoft YaHei','微软雅黑',Arial,Helvetica,sans-serif;}
a{text-decoration:none;}
#editor{border-collapse:collapse;border:1px solid #f4f4f4;}
#editor td{text-align: left;border:none;background:#fafafa;}
#preview_div p{padding:0;line-height:26px;color:inherit;font-family:inherit;}
#preview_div span{color:inherit;font-family:inherit;}
input[type="submit"],input[type="reset"]{padding:2px;}
.headline a,.headline span{font-size:13px;font-weight:bold;}
.connector{border-color: transparent #333333;border-style: solid;border-width: 4px 0px 4px 4px;height: 0px;width: 0px;display: inline-block;position:relative;top:-1px;margin:0 4px;
*border:none;*width:4px;*height:8px;*background:url('{site}/Public/images/ie6_guide.gif') no-repeat;*top:-4px;*left:0px;_top:4px;}
#web_editor_title select{padding:0;}
</style>
</head>
<body style="font-size:12px;background:#efefef;">
	<include file="Tpl/Public/top_bar.html">
		<center>
			<div class="headline" style="width:1140px;text-align:left;font-size:0;padding:10px 0;">
				<a href="{site}">主页</a>
				<?php if(!empty($this->array_array['fb_parent'])){echo '<span class="connector"></span>'.'<a href="'.$this->youyax_url.'/List'.$this->C('default_url').$this->array_array['fb_parent']['id'].$this->C('static_url').'">'.$this->array_array['fb_parent']['szone'].'</a>';} ?>
					<span class="connector"></span>
				<a href="__APP__/List{url}{f}{shtml}">{fb->szone}</a>
					<span class="connector"></span>
				<span>发布帖子</span>
			</div>
			<form name=form id=form method=post action="__APP__/List{url}insert1{shtml}" onsubmit="return check();">
			<div class="content-box" style="background:none;">
				<table id="editor" width=1140 border=1 cellspacing=0 cellpadding=0>
					<tr style="display:none;"><td>发帖人</td><td style="padding:10px 0;"><input name=zuozhe  READONLY value="{user}"><span id="ero" style="color:red;font-size:12px;"></span></td></tr>
					<tr><td style="padding:0 12px;vertical-align: middle;">分类</td><td style="padding:10px 0;">
						<select name="cat" style="float:left;" onchange="if(this.value=='2'){document.getElementById('bid_span').style.display='block';document.getElementById('bid').focus();}else{document.getElementById('bid_span').style.display='none';}"><option value="1">普通帖子</option><option value="2">提问帖子</option></select>
						<span id="bid_span" style="font-size:12px;display:none;float:left;margin-left:10px;margin-top: 4px;">金币:<input type="text" name="bid" id="bid" value="0" style="width:30px;"></span>	
					</td></tr>
					<tr><td style="padding:0 12px;vertical-align: middle;">标题</td><td style="padding:10px 0;"><input class="text-input medium-input" name="title" id="title" maxlength="{mix->talk_title}"  placeholder="{mix->talk_title}字以内" size=50 style="border:1px solid #dfdfdf;"><span id="titerror" style="background:#fffbd9;color:#7d7d7d"></span></td></tr>
					<tr><td style="padding:0 12px;vertical-align: middle;">标签</td><td style="padding:10px 0;"><input type="text" autocomplete="off" name="tagsk" placeholder="自定义标签" style="width:9em;" class="tm-input tm-input-success text-input typeahead" data-original-title="" /><em style="position: relative;top: 4px;left: 4px;color: #999;font-size: 12px;">不得超过10个字符</em></td></tr>
					<?php if("{mix->talk_visible}"==true){	?>
					<tr><td align="center" style="padding:0 12px;vertical-align: middle;">附加<br>选项</td><td style="padding:10px 0;">
							 <span style="font-size:13px;color:gray;position:relative;margin-right:10px;">群组邀请</span><input type="text" autocomplete="off" name="taggroup" placeholder="输入邀请的用户名" style="width:9em;" class="tm-inputgroup tm-input-success text-input typeaheadgroup" data-original-title="" />，只有受邀请的用户才能浏览帖子
							 <div style="clear:both;height:10px;"></div>
							 <input type="checkbox" name="isvisible" value="0" onclick="if(this.checked){this.value='1';}else{this.value='0';}"><span style="font-size:13px;color:gray;position:relative;left:10px;top:-2px;">是否回复才可见发帖内容，勾选，则是，反之，不是</span>
							 <div style="clear:both;height:10px;"></div>
							 <input type="checkbox" name="islimit1" value="0" onclick="if(this.checked){this.value='1';}else{this.value='0';}"><span style="font-size:13px;color:gray;position:relative;left:10px;top:-2px;">是否只允许回复1次，勾选，则是，反之，不是</span>
						  </td></tr>
					<?php	}	?>
					<tr>
					<td align="center" style="padding:0 12px;vertical-align: middle;">主题<br><br>内容</td><td width="890">
						<div id="edit" style="width:890px;background:#f9f9f9;margin:0 auto;font-weight:normal"></div>
						<script>web_editor_init("edit","1070","350","{site}/ORG/UBB")</script>
						<script>document.getElementById("web_editor_con2").setAttribute("placeholder","最少{mix->talk_content}个字符");</script>
						<span id="conerror"  style="background:#fffbd9;color:#7d7d7d"></span></td></tr>
						<input type="hidden" name="f" value="{f}">
						<input type="hidden" name="token" value="{token}">
					<tr><td><input class="button" id="sub" type="submit" value="发布帖子"></td><td style="padding-left:10px;"><input class="button" type="reset" value="重置"></td></tr>
				</table>
			</div>
			</form>
			<div style="width:1140px;">
				<include file="Tpl/Public/footer.html">
			</div>
		</center>
		<script>
var states = [<?php
$tags_hot     = array();
$tags_hot_arr = $this->find($this->C('db_prefix') . "count", "string", "id=1");
if ($tags_hot_arr['tags_hot']) {
    $tags_hot = unserialize($tags_hot_arr['tags_hot']);
    $tags_hot = array_keys($tags_hot);
    $tags_hot_num = count($tags_hot);
	foreach($tags_hot as $k=>$v){
		if($k == $tags_hot_num-1){
			echo "'".$v."'";
		}else{
			echo "'".$v."',";
		}
	}
}
?>];
		</script>
	</body>
</html>
					